package com.ruoyi.projects.service.impl;

import java.util.List;

import com.ruoyi.common.annotation.DataScope;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.projects.mapper.JwEduReformProjectsMapper;
import com.ruoyi.projects.domain.JwEduReformProjects;
import com.ruoyi.projects.service.IJwEduReformProjectsService;

/**
 * 教育教学改革课题情况Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-13
 */
@Service
public class JwEduReformProjectsServiceImpl implements IJwEduReformProjectsService 
{
    @Autowired
    private JwEduReformProjectsMapper jwEduReformProjectsMapper;

    /**
     * 查询教育教学改革课题情况
     * 
     * @param erpId 教育教学改革课题情况主键
     * @return 教育教学改革课题情况
     */
    @Override
    public JwEduReformProjects selectJwEduReformProjectsByErpId(Long erpId)
    {
        return jwEduReformProjectsMapper.selectJwEduReformProjectsByErpId(erpId);
    }

    /**
     * 查询教育教学改革课题情况列表
     * 
     * @param jwEduReformProjects 教育教学改革课题情况
     * @return 教育教学改革课题情况
     */
    @Override
    @DataScope(deptAlias = "d",userAlias = "d")
    public List<JwEduReformProjects> selectJwEduReformProjectsList(JwEduReformProjects jwEduReformProjects)
    {
        return jwEduReformProjectsMapper.selectJwEduReformProjectsList(jwEduReformProjects);
    }

    /**
     * 查询教育教学改革课题情况列表
     * 
     * @param jwEduReformProjects 教育教学改革课题情况
     * @return 教育教学改革课题情况
     */
    @Override
    @DataScope(deptAlias = "d", userAlias = "d")
    public List<JwEduReformProjects> selectAllJwEduReformProjects(JwEduReformProjects jwEduReformProjects) {
        return jwEduReformProjectsMapper.selectAllJwEduReformProjects(jwEduReformProjects);
    }

    /**
     * 新增教育教学改革课题情况
     * 
     * @param jwEduReformProjects 教育教学改革课题情况
     * @return 结果
     */
    @Override
    public int insertJwEduReformProjects(JwEduReformProjects jwEduReformProjects)
    {
        return jwEduReformProjectsMapper.insertJwEduReformProjects(jwEduReformProjects);
    }

    /**
     * 修改教育教学改革课题情况
     * 
     * @param jwEduReformProjects 教育教学改革课题情况
     * @return 结果
     */
    @Override
    public int updateJwEduReformProjects(JwEduReformProjects jwEduReformProjects)
    {
        jwEduReformProjects.setUpdateTime(DateUtils.getNowDate());
        return jwEduReformProjectsMapper.updateJwEduReformProjects(jwEduReformProjects);
    }

    /**
     * 批量删除教育教学改革课题情况
     * 
     * @param erpIds 需要删除的教育教学改革课题情况主键
     * @return 结果
     */
    @Override
    public int deleteJwEduReformProjectsByErpIds(Long[] erpIds)
    {
        return jwEduReformProjectsMapper.deleteJwEduReformProjectsByErpIds(erpIds);
    }

    /**
     * 删除教育教学改革课题情况信息
     * 
     * @param erpId 教育教学改革课题情况主键
     * @return 结果
     */
    @Override
    public int deleteJwEduReformProjectsByErpId(Long erpId)
    {
        return jwEduReformProjectsMapper.deleteJwEduReformProjectsByErpId(erpId);
    }
}
